<?php namespace Summer\Shop\Controllers;

use Backend\Classes\Controller;
use BackendMenu;

class Product extends Controller
{
    public $implement = [
        'Backend\Behaviors\ListController',
        'Backend\Behaviors\FormController'
    ];
    
    public $listConfig = 'config_list.yaml';
    public $formConfig = 'config_form.yaml';
    public $bodyClass = 'compact-container';

    public $requiredPermissions = [
        'shop_product' 
    ];

    public function __construct()
    {
        parent::__construct();
        BackendMenu::setContext('Summer.Shop', 'main-menu-item-shop', 'side-menu-item-product');
        $this->addJs('/plugins/summer/shop/assets/js/items.js');
    }
}
